<template>
	<view>
		<u-navbar :is-back="true" :is-fixed="true" title="订单评价"></u-navbar>
		<free-divider></free-divider>
		<view class="border-bottom pr-3 pl-3 " v-for="(item, index) in 2">
			<view class="dfes  py-3">
				<img src="/static/logo.png" class="rounded-circle" style="width: 52px; height: 52px;" />
				<view class="pl-2 lineHight-2">
					<view class="font-14">三亚芒果农业有限公司</view>
					<view class="text-A0A0A0 font-12">2024.02.19 12:11:35</view>
				</view>
			</view>
			<view class=" lineHight font-14">服务好，评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容</view>
			<view class="font-14 dfex bg-EFEFEF pl-3 pr-3 py-2 mt-3 rounded ">
				<view>这是需求名称</view>
				<view class="text-FFC251">已完成</view>
			</view>
			<view class="lineHight-3 font-14">评价回复：感谢支持！</view>
		</view>
		
	</view>
</template>

<script>
	import $H from '@/common/free-lib/request.js';	
	import $U from "@/common/free-lib/util.js";
	import freeDivider from "@/components/free-ui/free-divider.vue";
	export default {
		components: {
			freeDivider,
		},
		data() {
			return {
				pageNo:1,
				pageSize:10
			}
		},
		// /jeecg-boot/upper/upperMarketOrder/upper/orderEvaluationReplyList
		methods: {
			getOrderList(no, size) {
				uni.showLoading({
					title: '加载中'
				});
				$H.get('/upper/upperMarketOrder/upper/list', {
						pageNo: no,
						pageSize: size,
						orderType: this.tabBars[this.tabIndex].orderType,
						orderState: this.tabBars[this.tabIndex].type,
						productServeName: this.keyword
					}, {})
					.then(res => {
						uni.hideLoading();

						if (res.result.records.length == 0) {
							uni.showToast({
								title: '没有更多啦！',
								icon: 'success'
							});
							return;
						}
						const resList = [];
						for (let i = 0; i < res.result.records.length; i++) {
							let item = res.result.records[i];
							resList.push({
								id: item.id,
								productServeName: item.productServeName,
								orderState_dictText: item.orderState_dictText,
								orderNumber: item.orderNumber,
								agricultureUserId_dictText: item.agricultureUserId_dictText,
								orderTime: $T.parseTime(item.orderTime, "{y}年{m}月{d}日"),
								orderType: item.orderType,
								orderState: item.orderState,
								upperUserId_dictText: item.upperUserId_dictText,
								phone: item.phone
							});
						}
						this.tabs.push(...resList);

					})
					.catch(error => {
						console.error('请求出错', error); // 处理任何错误  
						uni.hideLoading();
					});
			},
		}
	}
</script>

<style>
</style>